import request from "@/utils/request";

// 获取全部分类
export const homeGetCategoryList = () => {
  return request.get('/home/category/head')
}

// 获取轮播图
export const homeGetBannerList = (params = {}) => {
  const { distributionSite = 1 } = params
  return request.get('/home/banner', {
    params: {
      distributionSite
    }
  })
}

// 获取新鲜好物
export const homeGetNewList = () => {
  return request.get('/home/new')
}

// 获取人气推荐
export const homeGetHotList = () => {
  return request.get('/home/hot')
}

// 获取所有商品
export const homeGetGoodsList = () => {
  return request.get('/home/goods')
}
